package models

//订单
type PurchaseHistory struct {
	Id          int `gorm:"primary_key json:"id" form:"id"`
	CommodityId int `json:"commodity_id" form:"commodity_id"` //商品id
	UserId      int `json:"user_id" form:"user_id"`           //用户id
	Number      int `json:"number" form:"number"`             //购买数量
}

func (PurchaseHistory) TableName() string {
	return "purchase_history"
}
